
import { req_goodsCategoryList } from '../../api/req_fun'
export default {
    namespaced: true,
    state: () => ({
        goodsCategoryList: []
    }),
    actions: {
        async get_goodsCategoryList(context) {
            // 调用函数请求数据
            const data = await req_goodsCategoryList();
            // console.log(data);
            context.commit('GET_GOODSCATEGORYLIST', data.data);
        }
    },
    mutations: {
        GET_GOODSCATEGORYLIST(state, data) {
            state.goodsCategoryList = data;
        }
    },
    getters: {}
}